﻿using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace StudentInfo.Areas.StudentArea.ViewModels
{
    public class MarkEditViewModel
    {
        public int Id { get; set; }

        [Display(Name = "Студент")]
        public int StudentId { get; set; }
        public SelectList StudentList { get; set; }

        public int ExamId { get; set; }
        public SelectList ExamList { get; set; }

        [Display(Name = "Оценка")]
        [Required()]
        [Range(2, 5)]
        public int Result { get; set; }
    }
}